home *** CD-ROM | disk | FTP | other *** search
- Internal Commands:
-
- DISPLAYING AND MANIPULATING DATA
- cat [-b] {file} copy file(s) to StdOut
- crypt [key] encrypt or decrypt StdIn to StdOut
- echo {string} write strings to StdOut
- fgrep [-cfl] pattern {file} find pattern, fixed string only
- grep [-cfsl] pattern {file} find pattern, allows extended wildcards
- hd {file} Hex dump
- more [file] same as pg
- pg [file] show file in pages
- raw [-bnc] {file} put file(s) on raw console
- tee file copy StdIn to StdOut and to file
- tr fltrfile filter StdIn to StdOut according to fltrfile
- wc [-lwcn] {file} count lines, words, and characters
- what [-s] {file} identify files by @(#)
-
- MAINTAINING FILES AND DIRECTORIES
- chmod (+|-)[cdhrsv] file change file attributes
- cp source dest copy files
- ls [-adlkCvxtnbr] {filespec} list files
- mkdir [-r] dir {dir} make a new directory
- mv source dest move a file (rename)
- rm [-fi] file {file} remove a file
- rmdir path {path} remove a directory
- touch file {file} update date-time-stamp
-
- SHELL PROGRAMMING
- . file execute a file as a shell script
- [ expr ] same as test
- exec [-lbxg] file {Parameter} execute a file as a binary program
- exit finish a script
- false returns 0
- fsel [filespec [name [var]]] (*) select a file with the fileselect box
- if, then, else, fi see below
- indir String send String once more through the evaluator
- read [[-] variable] read a variable from StdIn
- sleep [-s] Time wait for a while
- test [expr] evaluate a logical expression
- true returns 1
- while, do, break, done see below
- xargs [Command {Parameter}] perform with lines from StdIn, replace {}
-
- SHELL AND SYSTEM MANAGEMENT AND CONFIGURATION
- cursor [(+|-)bv] [rate] configure VT52 cursor
- date [+DateFmt] show time and date
- df [-dnmb] {drive} disk space info
- drive drive{drive} [name] get/set drive names
- exit finish the shell
- export [[-] {Variable}] mark or unmark for envir. (wildcards allowed)
- goff exit from AES application
- gon [-q] init as AES application or query
- keyb [-] | ([(+|-)abc] [-ir]) konfigure the keyboard
- keydef [+nsca] key [text|-] redefine the keyboard
- mouse [+|-] [form] [Var [Var [Var]]] (*) configure the mouse pointer
- readonly [[-] {variable]} make variables readonly
- rdti [-dclxv] [filename] configure shell from desktop.inf
- rsconf [-spbw] [(+|-)xr] configure the serial interface (RS232)
- scr [-bwhl] set backgr.col and (*) # of lines (hires only)
- shutdown [-rRfv] shut down the system
- trap [-|[+]Command {Parameter}] set a command to execute on shell exit
-
- SHELL AND SYSTEM MONITORING
- adr show some system adresses
- basep [-ap] [adress] find or analyse a basepage
- cmds [-Ca] {pattern} list internal commands (wildcards allowed)
- cookie [-xdn0sc] {cookie} read out the cookie jar (wildcards allowed)
- errcode {Number|errno} explain an error number
- fcts list Shell functions
- history [-l] load or save the history list
- mem [-b] show free or total RAM
- memex [-acwls] Adress [Number] examine memory
- pmd produce a post mortem dump
- set [-|(+|-)blxschu] show/set Shell flags
- time Command {Parameter} command run time
- type [-f] command {command} show calling path of command
- vars [-axs] list Shell variables
- ver [-oclgtdmMa] show shell & OS version numbers
-
- UTILITIES
- backup [-nNrq] [path] save files to disk
- find path filespec list matching files
- getscr [-[header] filename] get screen bit image (cf. putscr)
- putscr [-(f|s filename)] show/save a screen bit image (cf. getscr)
- rpn [Fmt] rpn-expr RPN calculator
- sort [-lnrs] sort StdIn to StdOut
- upn [Fmt] rpn-expr same as rpn
- virus [-xvsi] {drive} find & extinguish bootsector viruses
-
- MISCELLANIOUS
- basename file [extender] find filename (a:\okami\sh.ttp -> sh.ttp)
- bombs n terminate with n bombs (n>=2)
- cd [path] change work directory
- cls clear the screen
- dirname file find path (a:\okami\sh.ttp -> a:\okami\)
- drvname file find drive (a:\okami\sh.ttp -> a:)
- extname file find extender (okami\sh.ttp -> .ttp)
- fullname file find absolute filename
- hardcopy print contents of screen
- help this
- pwd [-a|{Drive}] print work directory
-
-
- (*) command can only be used after gon has been called.
-
- drive: e.g. d:
- path: e.g. d:\okami
- file: e.g. d:\okami\sh.ttp
- filespec: e.g. d:\okami\*.sh or file
- source,dest: file
- fltrfile: file
- pattern: any string
- Number: eg. 123 (dec), 0xabc (hex), 0123 (oct), %110 (bin), !A (char)
- Adress: Number
- Time: Number
- rate: 0:still, 30:normal, <30:faster, >30:slower
- expr: a logical expression, see "test" in commands.doc
- rpn-expr: an RPN expression
- Fmt: a printf format string
- DateFmt: special printf-like format, see "date" in commands.doc
- form: 0 arrow, 1 hourglass, 2 bee, 3 pointing hand, 4 flat hand,
- 5 thin crosshair, 6 thick crosshair, 7 outlined crosshair
-
-
- Commands with optional file (eg. hd [file]) take StdIn if no file is given.
-
-
- Extended Wildcards:
- * matches anything
- ? matches one character
- [xyz] matches x, y, or z
- [x-z] matches x, ..., z
- [~xy] matches any character except x and y
-
- Conditional execution:
- if command Executes commands1 if command returns a non-zero
- then exit value and commands2 if command returns a
- commands1 zero exit value. "else command2" may be ommitted.
- else command can be "test expr" or "[ expr ]" (see
- commands2 "test"). The "then" line may be ommitted.
- fi This works with shell scripts and in interactive
- mode.
-
- Looping:
- while command Executes commands2 until command returns a zero
- do exit value. break may be used within an if-fi-
- commands2 construct and quits the loop immediately.
- <may include:> continue may be used within an if-fi-contruct and
- break <or> starts a new loop immediately.
- continue The "do" line may be ommitted.
- endwhile This works with shell scripts (and functions) only.
-
- Function deklaration:
- functionname(filename) generates "functionname" from file
- (filename) generates `basename filename` from file
- functioname() generates "functionname" with the given
- { commands
- commands...
- }
- functionname() removes the named function
- {}
-
- I/O redirection:
- < redirect StdIn (all commands)
- > redirect StdOut, create (all commands)
- >> redirect StdOut, append (all commands)
- n> redirect File-Descr. n, create (n=2: StdErr)
- n>> redirect File-Descr. n, append (n=2: StdErr)
- | pipe
- `...` command substitution
-
- Devices:
- A: Disk Drive A:
- B: Disk Drive B: etc.
- CON: Console (screen and keyboard)
- PRT: Printer (parallel port)
- AUX: RS232 (serial Port [Modem])
- NULL: nowhere (set $NULL to specify)
-
- Keyboard command entry:
- Backspace erase last character
- Up-Arrow display previous in history (*)
- Dn-Arrow display next in history (*)
- Lt-Arrow filename-expand last word
- Rt-Arrow restore from previous input
- Insert save position for restore
- Clr Home erase line
- Help explain current command using $HELPFILE
- Ctrl Shift Undo deactivate keydefs (valid until ENTER)
- Control F select a file via fileselect box (**)
- Control P execute the shell function "screensave"
- Control V abort the shell
-
- (*) with Ctrl: execute, with Shift: last match
- (**) needs gon
-